//
//  OrderDetailModel.h
//  MobileShoppingMall
//
//  Created by 冯传昌 on 2021/5/6.
//  Copyright © 2021 冯传昌. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface OrderDetailModel : NSObject

@property (nonatomic,assign) BOOL cancelbtn;//是否允许取消订单
@property (nonatomic,assign) BOOL deletebtn;//是否可以删除
@property (nonatomic,assign) BOOL paybtn;//是否可以支付
@property (nonatomic,assign) BOOL receivebtn;//是否确认收货
@property (nonatomic,assign) BOOL trackbtn;//是否可以查看物流

@property (nonatomic,copy) NSString *canceldate;//取消订单日期
@property (nonatomic,copy) NSString *company;//供应商名称
@property (nonatomic,copy) NSString *logo;//供应商logo
@property (nonatomic,copy) NSString *countdown;//判断订单是否超时
@property (nonatomic,copy) NSString *donedate;//日期
@property (nonatomic,assign) NSInteger number;//订单商品数量
@property (nonatomic,copy) NSString *orderno;//订单号
@property (nonatomic,copy) NSString *outdate;//出货时间
@property (nonatomic,copy) NSString *paydate;//支付时间
@property (nonatomic,assign) float payprice;//支付金额
@property (nonatomic,assign) float totalprice;//商品总价格
@property (nonatomic,assign) NSInteger totaltbprice;//商品TB总价格

@property (nonatomic,copy) NSString *express;//快递公司
@property (nonatomic,copy) NSString *status;//订单状态说明
@property (nonatomic,assign) NSInteger state;//订单状态
@property (nonatomic,assign) NSInteger supplierId;//供应商ID
@property (nonatomic,copy) NSString *time;//订单时间
@property (nonatomic,copy) NSString *trackno;//物流单号

@property (nonatomic,assign) NSInteger ID;//订单ID

@property (nonatomic,strong) NSDictionary *deliver;//地址字典
@property (nonatomic,strong) NSArray *items;//订单商品字典

+(OrderDetailModel *)paraWithDict:(NSDictionary *)dict;

@end

NS_ASSUME_NONNULL_END

NS_ASSUME_NONNULL_BEGIN

@interface OrderDetailDeliverModel : NSObject

@property (nonatomic,copy) NSString *address;//详细地址
@property (nonatomic,copy) NSString *tracknumber;//物流号
@property (nonatomic,copy) NSString *city;//收货人所在城市
@property (nonatomic,copy) NSString *region;//收货人所在区域
@property (nonatomic,copy) NSString *province;//收货人所在省份
@property (nonatomic,copy) NSString *orderno;//订单号
@property (nonatomic,copy) NSString *linkphone;//收货人联系电话
@property (nonatomic,copy) NSString *linker;//收货人姓名

@property (nonatomic,assign) NSInteger ID;//地址ID



+(OrderDetailDeliverModel *)paraWithDict:(NSDictionary *)dict;


@end

NS_ASSUME_NONNULL_END



